package com.ln.property_control.service;

import com.ln.property_control.pojo.*;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

public interface ScrapService {
    //资产报状态修显示
    Map<String, Object> scrapFindAll(Integer page, Integer limit);

    //上传文件到阿里云oss，获取上传的文件(路径)
    String upload(MultipartFile file);

    //所在组织下拉框
    List<Department> organisation(Integer id);
    //提出申请维修
    Map<String, Object> insertScrap(Scrap scrap,int[] faultId, Scrapphoto scrapphoto);

    //获取维修申请单的详情（）
    ScrapVo selectScrapAll(String scrapId);
    Scrapphoto selectPhotoUrl(String scrapId);
    //通过申请
    int affirm(ScrapVo scrapVo);

    //查询资产是否存在
    Map<String, Object> selectPropertyExist(String property_id);

    //申请单的历史
    Map<String, Object>SelectHistory(String property_id);

    //将操作添加到日志中
    void insertHistory(Maintainhistory maintainhistory);

    //修改资产状态
    Map<String,Object>  updateScrapState(Integer scrap_state,String scrap_id,String property_id);

    //查询所有的故障类型
   List<ScrapVo> selectFaulttype();

    //查询中间表里的类型ia
    List<ScrapVo> selectLIstScfa(String scrap_id);

    // //记录档案
    String insertRecord(Record record);

}
